package com.jintu.portal.pojo.dto;

import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * Created by liyou on 2017/9/22.
 */
public class ModifyPwdDto implements Serializable {

    @NotBlank(message = "您还没有输入登录账号")
    private String username;

    private String oldPwd;

    @Pattern(regexp = "^[0-9A-Za-z]{6,20}$", message = "请设置6-20个字母或数字组成的密码")
    @NotBlank(message = "您还没有输入新密码")
    private String pwd;

    private String confirmPwd;

    @NotBlank(message = "您还没有输入验证码")
    private String verifyCode;

    private String pwd1;
    private String pwd2;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getOldPwd() {
        return oldPwd;
    }

    public void setOldPwd(String oldPwd) {
        this.oldPwd = oldPwd;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getConfirmPwd() {
        return confirmPwd;
    }

    public void setConfirmPwd(String confirmPwd) {
        this.confirmPwd = confirmPwd;
    }

    public String getVerifyCode() {
        return verifyCode;
    }

    public void setVerifyCode(String verifyCode) {
        this.verifyCode = verifyCode;
    }

    public String getPwd1() {
        return pwd1;
    }

    public void setPwd1(String pwd1) {
        this.pwd1 = pwd1;
    }

    public String getPwd2() {
        return pwd2;
    }

    public void setPwd2(String pwd2) {
        this.pwd2 = pwd2;
    }
}
